{template common/header}
{template user/userheader}
<div class="container mt20">
	<div class="span12 main">
		{template user/usernav}
		<div class="messages mt20">
			{if $user['is_star']}
			<div class="alert alert-info">
			{lang tip_staruser_settings_long}
			</div>
         	<form id="update_staruser" action="{url star/update}" class="form-horizontal mt10" method="post">
         		<fieldset>
					<div class="control-group">
			            <label class="control-label" for="email">{lang theme_select}</label>
			            <div class="controls">
							<button type="button" class="btn" data-action="openThemes" data-params="user,0">{lang theme_select}</button>
							<p class="help-block">{lang tip_open_new_win}</p>
			            </div>
			        </div>
			        <div class="control-group"> 
			            <label class="control-label" for="topic_desc">{lang star_description}</label>
			            <div class="controls">
			            	<textarea id="star_reason" name="star_reason" rows="6" class="span4">$user['star']['star_reason']</textarea> 
			            </div>
			        </div>
			        <div class="control-group">
			        	<label class="control-label"></label>
			            <div class="controls">
			            <button type="submit" class="btn btn-primary">{lang submit}</button>
			        	<span id="ajax_message" class="error"></span>
			            </div>
			        </div>
         		</fieldset>
    		</form>
    		{else}
    		<div class="alert alert-warning">
			{lang tip_staruser_apply}
			</div>
    		<div class="text_c" style="line-height: 150px;">
				<a href="javascript:;" data-action="applyOpen" data-params="star" class="apply-button ml10"><span>{lang staruser_apply}</span></a>
			</div>
    		{/if}
       </div>
	</div>
</div>
<script>
$(document).ready(function() {
	$.oValidate('update_staruser');
});
</script>
{template common/footer}
